@include('header')
@if(!$data)
	@include('empty_data')
@else
<link rel="stylesheet" href="{{asset('css/complaintsDetail.css')}}" />
<div class="wrapper">
	<div class="messageInfo">
		<div class="item"><span>留言类别 :</span><div class="message-type">业主投诉</div></div>
		<div class="item"><span>完成状态 :</span><div class="message-type">{{$data->remarks}}</div></div>
		<div class="item"><span>联系电话 :</span><div class="message-tel">{{$user->mobile}}</div></div>
	</div>
	<div class="message-main">
		@foreach($data->history as $k=>$v)
		<div class="myMessage">
			<div class="myMessage-title clearfix">
				<h3>@if($v->admin_uid <= 0) 我的留言 @else 管理员回复 @endif</h3>
				<div class="myMessage-time">
					{{$v->created_at}}
				</div>
			</div>
			<div class="myComplain">
				<div class="myComplain-inner">
					{{$v->description}}
				</div>
			</div>
		</div>
		@endforeach
	</div>
</div>
@endif